package cn.genmer.test.security.designpatterns.decorator.mydecorator;

import cn.genmer.test.security.designpatterns.decorator.Decorator;
import cn.genmer.test.security.designpatterns.decorator.Drink;

/**
 * 具体的装饰类 - 红豆
 */
public class RedBean extends Decorator {

    public RedBean(Drink obj){
        super(obj);
        setName("红豆");
        setPrice(3.0f);   // 调味品价格
    }
}
